package com.example.mydesignmodule.zhuangtai;

import android.provider.MediaStore;

/**
 * @author tgw
 * @date 2021/3/1
 * @describe
 */
class VideoControl implements video{

    private video mVideo;

    public VideoControl() {

    }

    public video getmVideo() {
        return mVideo;
    }

    public void setmVideo(video mVideo) {
        this.mVideo = mVideo;
    }

    @Override
    public void turnOn() {
        setmVideo(new OpenVideo());
        mVideo.turnOn();
    }

    @Override
    public void turnOff() {
        mVideo.turnOff();
        setmVideo(new OffVideo());
        mVideo.turnOff();
    }

    @Override
    public void turnPre() {
        mVideo.turnPre();
    }

    @Override
    public void turnNext() {
        mVideo.turnNext();
    }
}
